package utils

type GoUrlCache struct {
	cache map[string]string
}

func (g *GoUrlCache) InitCacheDate() {
	g.cache =make(map[string]string)
	g.cache["baidu"] = "https://www.baidu.com/"
	g.cache["jike"] = "https://time.geekbang.org/"
}

func (g *GoUrlCache) GetCacheValue(key string) (string,bool) {
	value, exists :=  g.cache[key]
	return value, exists
}